package com.whiteblue.controller;

import com.jfinal.core.Controller;
import com.whiteblue.model.Topic;

public class IndexController extends Controller {
	public void index() {
		setAttr("topicPage", Topic.dao.getPage(getParaToInt(0, 1)));
		setAttr("actionUrl", "/");
		render("/start.html");
	}

	public void leaveMsg() {
		render("/leaveMsg.html");
	}

	public void regist() {
		render("/regist.html");
	}

	public void toLogin() {
		render("/login.html");
	}

}
